home *** CD-ROM | disk | FTP | other *** search
- #include "error.h"
- #include "blkmenu.h"
- #include "button.h"
-
-
- int error_report(char* report)
- {
- Window* w = new Window(rect(10, 5, 46, 16), "error.pcy");
- Button* button = new Button(rect(11, 6, 45, 15),
- report, NO_BORDER);
-
- int bak = pColorSet->colors.BAK_COLOR;
- int attr = pColorSet->colors.ATTR_COLOR;
-
- pColorSet->colors.BAK_COLOR = BLUE;
- pColorSet->colors.ATTR_COLOR = LIGHTRED;
-
- w->show_window(); // window - the "dummy" way to hide button
- button->show(); // button
-
- pColorSet->colors.BAK_COLOR = bak;
- pColorSet->colors.ATTR_COLOR = attr;
-
- e = getevent(KEYEVENT | MOUSEEVENT);
- e.what = KEYEVENT;
- e.key = EVENT_RETURN;
- global_num = 1;
- global_i[0] = AC_OK;
-
- w->hide();
- delete button;
- delete w;
- return 1;
- }
- /////////////////////////